package com.glebusheg.app
{
	import com.ek.debug.Console;
	
	/**
	 * Команды для прототипирования в консоли.
	 */
	public class ProtoCommands
	{
		static private var _initialized:Boolean = false;
		static private var _console:Console;
		
		static private var _suit:SuitApp;
		
		static public function initialize(console:Console):void
		{
			if (_initialized)
				return;
			_initialized = true;
			_console = console;
			
			_suit = SuitApp.instance;
			
			addCommands();
		}
		
		static private function addCommands():void
		{
			//_console.addCommand("zoom", "Prints viewport zoom value.", getZoom);
			//_console.addCommand("inventory.list", "Print player's inventory content.", inventoryList);
			//_console.addCommand("inventory.clear", "Clear player's inventory.", inventoryClear);
			//_console.addCommand("inventory.add", "Add item in inventory. [item] [count = 1]", inventoryAdd);
			//_console.addCommand("inventory.remove", "Delete item from inventory. [item] [count = 1]", inventoryRemove);
			//_console.addCommand("inventory.check", "Check required type item. [item]", inventoryCheck);
			//_console.addCommand("reset", "", reset);
			//_console.addCommand("add.coins", "Add coins. [amount]", addPlayerCoins);
			//_console.addCommand("add.cash", "Add cash. [amount]", addPlayerCash);
			//_console.addCommand("add.energy", "Add energy. [amount]", addPlayerEnergy);
			//_console.addCommand("add.xp", "Add experience. [amount]", addPlayerXP);
			//_console.addCommand("js.exec", "Call external javascript. [string to execute]", jsExec, false);
			//_console.addCommand("vid.fps", "[fps]", vidFPS);
			//_console.addCommand("test.post", "", testPost);
			//_console.addCommand("plurals", "", testPlurals);
			//_console.addCommand("seed", "set game random seed [seed = utc()]", setRandomSeed);
			//_console.addCommand("drop", "roll specified drop [drop_id]", rollDrop);
			//_console.addCommand("ho", "start ho scene [scene_id]", startHO);
			// commands for new invetory and collections examine
			//_console.addCommand("col", "open collections dialog", collectDialog);
			//_console.addCommand("inv", "open inventory dialog", farmInventory);
			//_console.addCommand("coll.run", "create collision map", createCollisionMap);
			//_console.addCommand("se.run", "set objects to location", runSceneEditor);
		}
		
		static public function get console():Console
		{
			return _console;
		}
	}
}

